import { lazy } from "react";
import {createBrowserRouter} from 'react-router-dom'
import App from "../App";
const Home=lazy(()=>import('../page/home/Index'))
const Order=lazy(()=>import('..//page/order/Index'))
export const houseroutes=[
    {
        path:'/home/order',
        element:<Order></Order>,
        title:'订单'
    }
]
const routes=createBrowserRouter([
    {
        index:true,
        element:<App></App>,
    },
    {
        path:'/home',
        element:<Home></Home>,
        children:houseroutes
    }
])
export default routes